import request from '@/utils/request'

/**
 * 网格主的意向确认-审批分页查询
 * @param data
 * @returns {AxiosPromise}
 */
export function toSubmitPage(data) {
  return request({
    url: '/hnm/hx/api/build/houses/toSubmitPage',
    method: 'post',
    data
  })
}

/**
 * 网格主的意向确认-意向详情查询
 * @param params
 * @returns {AxiosPromise}
 */
export function lookDetailedMessage(params) {
  return request({
    url: '/hnm/hx/api/build/houses/lookDetailedMessage',
    method: 'get',
    params
  })
}

/**
 * 网格主的意向确认-审批通过
 * @param data
 * @returns {AxiosPromise}
 */
export function messageToApprove(data) {
  return request({
    url: '/hnm/hx/api/build/houses/messageToApprove',
    method: 'post',
    data
  })
}

/**
 * (意向达成)网格主的建户信息确认保存接口
 * @param data
 * @returns {AxiosPromise}
 */
export function buildHousesMessageKeep(data) {
  return request({
    url: '/hnm/hx/api/build/houses/buildHousesMessageKeep',
    method: 'post',
    data
  })
}

/**
 * (意向提交)建户意向申请保存
 * @param data
 * @returns {AxiosPromise}
 */
export function saveBuildHousesIntention(data) {
  return request({
    url: '/hnm/hx/api/build/houses/saveBuildHousesIntention',
    method: 'post',
    data
  })
}


